package com.example.androidstudy.weather.viewmodel;

import androidx.databinding.ObservableBoolean;
import androidx.databinding.ObservableField;

import com.example.androidstudy.weather.model.WeatherData;

import retrofit2.Call;
import retrofit2.Retrofit;

public class QueryWeaherViewModel {
    private static final String TAG = "QueryWeaherViewModel";

    public final ObservableBoolean loading = new ObservableBoolean(false);

    public final ObservableBoolean loadingSuccess = new ObservableBoolean(false);

    public final ObservableBoolean loadingFailuee = new ObservableBoolean(false);

    public final ObservableField<String> city = new ObservableField<>();

    public final ObservableField<String> cityld = new ObservableField<>();

    public final ObservableField<String> temp1 = new ObservableField<>();

    public final ObservableField<String> temp2 = new ObservableField<>();

    public final ObservableField<String> weather = new ObservableField<>();

    public final ObservableField<String> time = new ObservableField<>();

    private Call<WeatherData> mCall;

    public QueryWeaherViewModel() {

    }

    public void queyWeather() {
        loading.set(true);
        loadingSuccess.set(false);
        loadingFailuee.set(false);


    }









}
